package com.zhixue.study.feignclient;


import com.zhixue.content.model.po.CoursePublish;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "content-api", fallbackFactory = ContentServiceClientFallbackFactory.class, path = "/content")
public interface ContentServiceClient {

    @ResponseBody
    @GetMapping("/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);

}
